<!doctype html>
<html lang="en">

<head>
  <meta charset="utf-8">
  <title>Appstorevn - Dashboard</title>
  <link rel="shortcut icon" href="favicon.gif">
  <!---CSS Files-->
  <link rel="stylesheet" href="<?php echo base_url('src/appstore/css/master.css')?>">
  <link rel="stylesheet" href="<?php echo base_url('src/appstore/css/tables.css')?>">
  <!---jQuery Files-->
  <script src="<?php echo base_url('src/appstore/js/jquery-1.7.1.min.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/jquery-ui-1.8.17.min.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/styler.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/jquery.tipTip.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/colorpicker.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/sticky.full.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/global.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/flot/jquery.flot.min.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/flot/jquery.flot.resize.min.js')?>"></script>
  <script src="<?php echo base_url('src/appstore/js/jquery.dataTables.min.js')?>"></script> 
  <!---Fonts-->
  <link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,600,700' rel='stylesheet' type='text/css'>
  <link href='http://fonts.googleapis.com/css?family=Ubuntu:500' rel='stylesheet' type='text/css'>
  <!--[if lt IE 9]>
  <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  <![endif]-->
  <!--[if lte IE 8]>
  <script language="javascript" type="text/javascript" src="<?php echo base_url('src/appstore/js/flot/excanvas.min.js')?>"></script>
  <![endif]-->
</head>
<body>

  <!--- HEADER -->

	<div class="header">
   <a href="dashboard.html"><img src="<?php echo base_url('src/appstore/img/logo.png')?>" alt="Logo" /></a> 
   <div class="styler">
     <ul class="styler-show">
       <li><div id="colorSelector-top-bar"></div></li>
       <li><div id="colorSelector-box-head"></div></li>
     </ul>
   </div>
  </div>

  <div class="top-bar">
      <ul id="nav">
        <li id="user-panel">
          <img src="<?php echo base_url('src/appstore/img/nav/usr-avatar.jpg')?>" id="usr-avatar" alt="" />
          <div id="usr-info">
            <p id="usr-name">Welcome back, <?php echo $this->session->userdata('adminnam'); ?>.</p>
            <p id="usr-notif">You have 6 notifications. <a href="#">View</a></p>
            <p><a href="<?php echo site_url('admincp/logout');?>"> Log out</a></p>
          </div>
        </li>
        <li>
        <?php $this->load->view("appstore/admin/menu_navigator");?>
      </li>
     </ul>
  </div>

  <!--- CONTENT AREA -->

  <div class="content container_12">
  			<?php if($this->router->fetch_method() == 'index'):?>
				 <?php $this->load->view("appstore/admin/home");?> 
			<?php endif;?> 
			
		 	<?php if($this->router->fetch_method() == 'usercp'):?>
				<?php $this->load->view('appstore/admin/usercp');?>
			<?php endif;?> 
			
			<?php if($this->router->fetch_method() == 'type'):?>
				<?php $this->load->view('appstore/admin/type');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_type'):?>
				<?php $this->load->view('appstore/admin/add_type');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'categorytype'):?>
				<?php $this->load->view('appstore/admin/category');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_cate'):?>
				<?php $this->load->view('appstore/admin/add_cate');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'sitecontent'):?>
				<?php $this->load->view('appstore/admin/sitecontent');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_sitecontent'):?>
				<?php $this->load->view('appstore/admin/add_sitecontent');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'content'):?>
				<?php $this->load->view('appstore/admin/content');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'edit_catecontent'):?>
				<?php $this->load->view('appstore/admin/edit_catecontent');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_news'):?>
				<?php $this->load->view('appstore/admin/add_news');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'blockip'):?>
				<?php $this->load->view('appstore/admin/blockip');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_ip'):?>
				<?php $this->load->view('appstore/admin/add_ip');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'adminuser'):?>
				<?php $this->load->view('appstore/admin/adminuser');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'add_useradmin'):?>
				<?php $this->load->view('appstore/admin/add_useradmin');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'edit_useradmin'):?>
				<?php $this->load->view('appstore/admin/edit_useradmin');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'searchadmin'):?>
				<?php $this->load->view('appstore/admin/searchadmin');?>
			<?php endif;?>

			<?php if($this->router->fetch_method() == 'fmenu'):?>
				<?php $this->load->view('appstore/admin/fmenu');?>
			<?php endif;?>
			
			<?php if($this->router->fetch_method() == 'edit_sitecontent'):?>
				<?php $this->load->view('appstore/admin/edit_sitecontent');?>
			<?php endif;?>
			<?php if($this->router->fetch_method() == 'edit_news'):?>
				<?php $this->load->view('appstore/admin/edit_news');?>
			<?php endif;?>
			<?php if($this->router->fetch_method() == 'listusertype'):?>
				<?php $this->load->view('appstore/admin/listusertype');?>
			<?php endif;?>
			
  </div>

<div class="footer">
  <p>Powered by Appstorevn Administration Interface</p>
</div>
 
<script> /* SCRIPTS */
  $(function () {
      var sin = [], cos = [];
      for (var i = 0; i < 14; i += 0.5) {
          sin.push([i, Math.sin(i)]);
          cos.push([i, Math.cos(i)]);
      }
      var plot = $.plot($("#flot-demo"),
             [ { data: sin, label: "Green", color: "#71a100"}, { data: cos, label: "Blue", color: "#308eef" } ], {
                 series: {
                     lines: { show: true },
                     points: { show: true }
                 },
                 grid: { hoverable: true },
                 yaxis: { min: -1.2, max: 1.2 }
               });
      var previousPoint = null;
      $("#flot-demo").bind("plothover", function (event, pos, item) {
          if ($("#enablePosition:checked").length > 0) {
              var str = "(" + pos.x.toFixed(2) + ", " + pos.y.toFixed(2) + ")";
              $("#hoverdata").text(str);
          }
      });
  });/* for the flot chart demo */

  $('#example').dataTable( {
      "bJQueryUI": true
  }); /* For the data tables */
</script>

</body>


</html>